import request from '@/utils/http'
// 加入购物车
export function insertCartApi(data) {
  return request({
    url: '/member/cart',
    method: 'post',
    data: {
      skuId:data.skuId,
      count:data.count
    }
  })
}
// 获取购物车列表
export function getCartListApi() {
  return request.get('/member/cart')
}

// 删除购物车
export function delCartApi(ids) {
  return request({
    url:'/member/cart',
    method:'delete',
    data:{
      ids
    }
  })
}

// 合并购物车
export function mergeCartApi(data){
  return request({
    url:'/member/cart/merge',
    method:'post',
    data
  })
}
